import { type RouteRecordRaw } from 'vue-router';

export const baseRoutes: RouteRecordRaw[] = [
  {
    path: '/base',
    name: 'base',
    meta: { title: '基础信息', icon: 'international' },
    children: [
      {
        path: 'report',
        name: 'report',
        meta: { title: '地震速报', icon: 'menu-clipboard' },
        component: () => import('@/views/base/report/Index.vue'),
      },
      {
        path: 'weather',
        name: 'weather',
        meta: { title: '气象预警', icon: 'menu-download' },
        component: () => import('@/views/base/weather/Index.vue'),
      },
      {
        path: 'calendar',
        name: 'calendar',
        meta: { title: '节假日信息', icon: 'menu-build' },
        component: () => import('@/views/base/calendar/Index.vue'),
      },
      {
        path: 'shelterManage',
        name: 'shelterManage',
        meta: { title: '避难所信息', icon: 'menu-home' },
        component: () => import('@/views/base/shelterManage/Index.vue'),
      },
    ],
  },
];
